PHP8.0.9をmacOS BigSurにphpenvでインストールする
code:bash
brew install zlib bzip2 libiconv tidy-html5 krb5 openssl@1.1 icu4c libedit libxml2
CFLAGS="-Wno-error=implicit-function-declaration -DU_DEFINE_FALSE_AND_TRUE=1" CXXFLAGS="-Wno-error=implicit-function-declaration -DU_DEFINE_FALSE_AND_TRUE=1" PHP_BUILD_CONFIGURE_OPTS="--with-libedit=$(brew --prefix libedit) --with-zlib-dir=$(brew --prefix zlib) --with-bz2=$(brew --prefix bzip2) --with-iconv=$(brew --prefix libiconv) --with-tidy=$(brew --prefix tidy-html5) --with-openssl=$(brew --prefix openssl@1.1)" PKG_CONFIG_PATH="$(brew --prefix krb5)/lib/pkgconfig:$(brew --prefix openssl@1.1)/lib/pkgconfig:$(brew --prefix icu4c)/lib/pkgconfig:$(brew --prefix libedit)/lib/pkgconfig:$(brew --prefix libxml2)/lib/pkgconfig" phpenv install 8.0.9
参考
PHP7.4.2をmacOS Catalinaにphpenvでインストールする
PHP7.1.33をmacOS BigSurにphpenvでインストールする
Mac Big Sur、phpenv で PHP 7.4, 7.3 を再インストール(intl のビルドエラーがあり解決)
#Techlog #PHP #phpenv #macOS_BigSur